﻿using System;
using System.Collections.Generic;
using System.Drawing;

namespace Dot5Demo
{
    public interface IRender : IDisposable
    {
        bool Enabled { get; set; }
        Point Location { get; set; }
        Size Size { get; set; }
        Color BackCOlor { get; set; }
        Color ForeCOlor { get; set; }
        Font Font { get; set; }
        bool Visible { get; set; }
        IList<IRender> Renders { get; set; }

        void AddRenderer(IRender renderer);

        void ClearRenderer();

        void Invalidate(Rectangle rc);

        void RemoveRenderer(IRender renderer);

        void DoRender(Graphics g, Rectangle rect);

        void DoRender(Graphics g, RectangleF rect);
    }
}